package com.xinqi.modules.prepare.question.dto.rsp;

import com.xinqi.common.base.dto.CommonFileDTO;
import com.xinqi.common.base.dto.QuestionOptionsDTO;;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;

/**
 * 备课区测评卷试题表-响应对象
 *
 * @author: system
 * @date: 2023/03/19
 */
@Data
@Schema(description = "备课区测评卷试题表-响应对象")
public class PrepareQuestionBankResultDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键", example = "")
    private Long id;
    /**
     * 创建者
     */
    @Schema(description = "创建者", example = "")
    private Long createBy;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "")
    private LocalDateTime createTime;
    /**
     * 备课区id
     */
    @Schema(description = "备课区id", example = "")
    private Long prepareId;
    /**
     * 用户id
     */
    @Schema(description = "用户id", example = "")
    private Long userId;
    /**
     * 题型，1:判断题；2:单选题；3:多选题；4:不定项题；5: 填空题；6:简答题；
     */
    @Schema(description = "题型，1:判断题；2:单选题；3:多选题；4:不定项题；5: 填空题；6:简答题；", example = "1")
    @Deprecated
    private String type;
    /**
     * 题型，1:判断题；2:单选题；3:多选题；4:不定项题；5: 填空题；6:简答题；
     */
    @Schema(description = "题型，1:判断题；2:单选题；3:多选题；4:不定项题；5: 填空题；6:简答题；", example = "1")
    private String questionType;
    /**
     * 标题
     */
    @Schema(description = "标题", example = "")
    private String question;
    /**
     * 内容
     */
    @Schema(description = "内容", example = "")
    private String content;

    /**
     * 题目文件
     */
    @Schema(description = "内容文件列表", example = "")
    private String questionFile;
    /**
     * 题目文件
     */
    @Schema(description = "内容文件列表", example = "")
    private List<CommonFileDTO> questionFiles = Collections.emptyList();
    /**
     * 选项设置
     */
    @Schema(description = "选项设置", example = "")
    private List<QuestionOptionsDTO> optionList = Collections.emptyList();

    @Schema(description = "选项设置", example = "")
    private String options;
    /**
     * 难易程度，1:易；2:中；3:难
     */
    @Schema(description = "难易程度，1:易；2:中；3:难", example = "")
    private String difficulty;
    /**
     * 分值
     */
    @Schema(description = "分值", example = "")
    private BigDecimal score;
    /**
     * 题目排序
     */
    @Schema(description = "题目排序", example = "")
    private Integer sort;
    /**
     * 答案
     */
    @Schema(description = "答案", example = "")
    private String answer;
    /**
     * 答案文件
     */
    @Schema(description = "答案文件", example = "")
    private String answerFile;
    /**
     * 答案文件
     */
    @Schema(description = "答案文件列表", example = "")
    private List<CommonFileDTO> answerFiles = Collections.emptyList();
    /**
     * 答案解析
     */
    @Schema(description = "答案解析", example = "")
    private String analysis;
    /**
     * 答案解析
     */
    @Schema(description = "答案解析文件", example = "")
    private String analysisFile;
    /**
     * 答案解析文件
     */
    @Schema(description = "答案解析文件列表", example = "")
    private List<CommonFileDTO> analysisFiles = Collections.emptyList();

}
